import { createStore } from 'vuex'
import Cookies from "js-cookie"

export default createStore({
  state: {
	  token:''
  },
  getters: {
  },
  mutations: {
	  SET_TOKEN(state, token){
		  state.token = token;
		  Cookies.set('token', token)
	  },
	  RESET_STATE(state){
		  state.token = '';
		  Cookies.remove('token')
	  }
  },
  actions: {
  },
  modules: {
  }
})
